package com.fzrskj.cloud.free.core.tool;

import ms.core.tool.ResponseTool;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * CResponseTool.
 *
 * @author zj.
 *         Created on 2018/9/3 0003.
 */
public class CResponseTool extends ResponseTool {
    public static void doResponseText(HttpServletResponse response, String content){
        try{
            response.setContentType("text/html;charset=utf-8");
            PrintWriter out = response.getWriter();
            out.write(content);
            out.flush();
            out.close();
        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
